package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Shane
 * @since 2019-08-23
 */
@TableName("user_chat_buy_log")
public class UserChatBuyLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 主播id
	 */
	@TableField(value="host_user_id")
	private Integer hostUserId;

	/**
	 * 发送类型，0-主播发送  1-用户发送
	 */
	@TableField(value="send_type")
	private Integer sendType;

	/**
	 * 聊天类型，0-文字  1-礼物
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 聊天内容
	 */
	private String content;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 用户消息已读状态，0-未读  1-已读
	 */
	@TableField(value="user_read")
	private Integer userRead;

	/**
	 * 主播消息已读状态，0-未读  1-已读
	 */
	@TableField(value="host_read")
	private Integer hostRead;

	/**
	 * 金币数量
	 */
	private Integer coin;

	/**
	 * 积分数量
	 */
	private String credit;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getHostUserId() {
		return hostUserId;
	}

	public void setHostUserId(Integer hostUserId) {
		this.hostUserId = hostUserId;
	}

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUserRead() {
		return userRead;
	}

	public void setUserRead(Integer userRead) {
		this.userRead = userRead;
	}

	public Integer getHostRead() {
		return hostRead;
	}

	public void setHostRead(Integer hostRead) {
		this.hostRead = hostRead;
	}

	public Integer getCoin() {
		return coin;
	}

	public void setCoin(Integer coin) {
		this.coin = coin;
	}

	public String getCredit() {
		return credit;
	}

	public void setCredit(String credit) {
		this.credit = credit;
	}

}
